import { createRouter, createWebHistory } from 'vue-router'
import WorkPlan from '../views/WorkPlan.vue'
import MaterialList from '../views/MaterialList.vue'
import DataQuery from '../views/DataQuery.vue'
import StencilTracking from '../views/StencilTracking.vue'
import FixtureTracking from '../views/FixtureTracking.vue'
import SOPTracking from '../views/SOPTracking.vue'

const routes = [
  {
    path: '/',
    name: 'WorkPlan',
    component: WorkPlan
  },
  {
    path: '/materials',
    name: 'MaterialList',
    component: MaterialList
  },
  {
    path: '/query',
    name: 'DataQuery',
    component: DataQuery
  },
  {
    path: '/stencils',
    name: 'StencilTracking',
    component: StencilTracking
  },
  {
    path: '/fixtures',
    name: 'FixtureTracking',
    component: FixtureTracking
  },
  {
    path: '/sop',
    name: 'SOPTracking',
    component: SOPTracking
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
